#edit this
alias ali='vim ~/.oh-my-zsh/custom/aliases.zsh'

#update
alias uu='sudo apt update && sudo apt upgrade -y && sudo apt autoclean && sudo apt autoremove -y'

#power
alias sd='sudo shutdown -P now'
alias rb='sudo reboot'

#history and grep
alias hg='history | grep'

#navigate up directory
alias up='cd .. && ls'

#list in one column
alias l='ls -1'

#install apps
alias sai='sudo apt install -y'

#weather in cities
alias wttr='curl -s wttr.in/{Moscow,N.Novgorod,Chelyabinsk,Omsk,St.Peterburg,Voronezh}?format=3'

#usefull utils ZH-K-H
alias comun="mkdir -p $(date --date='1 month ago' +"%Y_%m")/$(date --date='1 month ago' +"%Y_%m")_Газпром_VRGAZ.RU_Мои_Газ && mkdir -p $(date --date='1 month ago' +"%Y_%m")/$(date --date='1 month ago' +"%Y_%m")_ЕПСС_ЖКХ_ВО && mkdir -p $(date --date='1 month ago' +"%Y_%m")/$(date --date='1 month ago' +"%Y_%m")_Квадра_отопление && mkdir -p $(date --date='1 month ago' +"%Y_%m")/$(date --date='1 month ago' +"%Y_%m")_ТНС_Энерго && mkdir -p $(date --date='1 month ago' +"%Y_%m")/$(date --date='1 month ago' +"%Y_%m")_ФОНД_КАП_РЕМОНТА && mkdir -p $(date --date='1 month ago' +"%Y_%m")/$(date --date='1 month ago' +"%Y_%m")_РОСТЕЛЕКОМ"

#git on local server credentials 
alias gib='git init --bare && git config --global user.name "Maxim Borozdin" && git config --global user.email nyptus@yandex.ru'

#git usage 
alias gs='git status'
alias ga='git add .'
alias gc='git commit'
alias gpush='git push origin master'
alias gpull='git pull origin master'
